package com.gitee.ly.ymorm.log.slf4j;

import com.gitee.ly.ymorm.log.YmOrmLog;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * Slf4jImpl
 *
 * @author ly
 **/
public class Slf4jImpl implements YmOrmLog {

    private Logger logger;

    public Slf4jImpl(String clazz) {
        logger = LoggerFactory.getLogger(clazz);
    }

    @Override
    public void debug(String s) {
        logger.debug(s);
    }

    @Override
    public void info(String s) {
        logger.info(s);
    }

    @Override
    public void warn(String s) {
        logger.warn(s);
    }

    @Override
    public void error(String s) {
        logger.error(s);
    }

    @Override
    public void error(String s, Throwable e) {
        logger.error(s, e);
    }
}
